package com.the_ring.structural.flyweight;

/**
 * @author: t22306139
 * @date: 2023/12/1  10:40
 */
public class Flyweight implements IFlyweight{

    private String id;

    public Flyweight(String id) {
        this.id = id;
    }

    @Override
    public void print() {
        System.out.println("Flyweight.id = " + getId() + " ...");
    }

    public String getId() {
        return id;
    }
}
